import { ApiProperty } from '@nestjs/swagger';
import { IsArray, IsNumber, ValidateNested } from 'class-validator';

export class DeleteUserDto {
  @ApiProperty({
    example: [1, 2],
    description: '用户id列表',
  })
  @IsArray()
  @ValidateNested({ each: true })
  @IsNumber({}, { each: true }) // 仅当数组元素是字符串时通过验证
  idList: number[]; //用户名
}
